/*
** 2583.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Sun Sep 21 21:10:00 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "2583.h" */
#include <stdio.h>

int main()
{
     int A, B, C;
     int y1, y2, y3;

     while(scanf("%d%d%d", &y1, &y2, &y3) != EOF){
	  A = (y3 - y2 - y2 + y1) >> 1;
	  B = y2 - y1 - A - A - A;
	  C = y1 - A -B;
	  printf("%d %d %d\n",
		 16*A + 4*B + C,
		 25*A + 5*B + C,
		 36*A + 6*B + C);
     }
     return 0;
}
